SET(CMAKE_INCLUDE_CURRENT_DIR ON)

SET(ChOR_ENABLE_CPP_RTTI TRUE)
INCLUDE("../cxx_flag_overrides.cmake")
SET(ChOR_ENABLE_CPP_RTTI)

SET(SOURCES
CppNpObject.cpp
CppNpObject.h
PyNpObject.cpp
PyNpObject.h
main.cpp
)

# TODO should have a FindChromium.cmake file
SET(CHROMIUM_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../Chromium/src")
# TODO should have a FindPython.cmake file
SET(PYTHON_ROOT "M:/sdk/python26")
# TODO should have a FindBoost.cmake file

INCLUDE_DIRECTORIES("../Awesomium")
INCLUDE_DIRECTORIES("${CHROMIUM_ROOT}")
INCLUDE_DIRECTORIES("${CHROMIUM_ROOT}/third_party/npapi")
INCLUDE_DIRECTORIES("${PYTHON_ROOT}/include")
# TODO should add boost include & libs

LINK_DIRECTORIES("${CHROMIUM_ROOT}/build/${CMAKE_CFG_INTDIR}/lib")
LINK_DIRECTORIES("${PYTHON_ROOT}/libs")

ADD_LIBRARY(pyAwesomium SHARED ${SOURCES})

SET_TARGET_PROPERTIES( pyAwesomium
	PROPERTIES
	SUFFIX ".pyd"
	DEBUG_POSTFIX ""
)

TARGET_LINK_LIBRARIES( pyAwesomium Awesomium ) 
